import request from '@/utils/request'
import {projectApisUrl} from '../config'

/**
 * 设计资料列表
 * @param parameter
 */
export function getDesignResultList(parameter){
  return request({
    url: projectApisUrl+'/project/design-result/list',
    method: 'post',
    data: parameter
  })
}

/**
 * 设计资料统计
 * @param
 */
export function getDesignTotal(data){
  return request({
    url: projectApisUrl+'/project/design-result/total/total',
    method: 'post',
    data
  })
}

/**
 * 设计资料上传附件批量删除
 * @param
 */
export function deleteDesignResultFile(data){
  return request({
    url: projectApisUrl+'/project/design-result/fileDelete',
    method: 'post',
    data:data
  })
}

/**
 * 设计资料新增
 * @param
 */
export function addDesignResult(data){
  return request({
    url: projectApisUrl+'/project/design-result',
    method: 'post',
    data:data
  })
}

/**
 * 设计资料修改
 * @param
 */
export function editDesignResult(data){
  return request({
    url: projectApisUrl+'/project/design-result/update',
    method: 'post',
    data:data
  })
}


/**
 * 设计资料详情
 * @param
 */
export function getDesignDetails(id){
  return request({
    url: projectApisUrl+'/project/design-result/detail',
    method: 'get',
    params:id
  })
}

/**
 * 标签列表
 * @param parameter
 */
export function getTypeLabels(parameter) {
  return request({
    url: projectApisUrl +'/plan-label',
    method: 'get',
    params: parameter
  })
}